package com.ruoyi.ems.service.impl;

import com.ruoyi.ems.domain.EmsScoreDetails;
import com.ruoyi.ems.mapper.EmsScoreDetailsMapper;
import com.ruoyi.ems.service.IEmsScoreDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分数明细Service业务层处理
 * 
 * @author sh
 * @date 2023-12-12
 */
@Service
public class EmsScoreDetailsServiceImpl implements IEmsScoreDetailsService 
{
    @Autowired
    private EmsScoreDetailsMapper emsScoreDetailsMapper;

    /**
     * 查询分数明细
     * 
     * @param id 分数明细主键
     * @return 分数明细
     */
    @Override
    public EmsScoreDetails selectEmsScoreDetailsById(Long id)
    {
        return emsScoreDetailsMapper.selectEmsScoreDetailsById(id);
    }

    /**
     * 查询分数明细列表
     * 
     * @param emsScoreDetails 分数明细
     * @return 分数明细
     */
    @Override
    public List<EmsScoreDetails> selectEmsScoreDetailsList(EmsScoreDetails emsScoreDetails)
    {
        return emsScoreDetailsMapper.selectEmsScoreDetailsList(emsScoreDetails);
    }

    /**
     * 新增分数明细
     * 
     * @param emsScoreDetails 分数明细
     * @return 结果
     */
    @Override
    public int insertEmsScoreDetails(EmsScoreDetails emsScoreDetails)
    {
        return emsScoreDetailsMapper.insertEmsScoreDetails(emsScoreDetails);
    }

    /**
     * 修改分数明细
     * 
     * @param emsScoreDetails 分数明细
     * @return 结果
     */
    @Override
    public int updateEmsScoreDetails(EmsScoreDetails emsScoreDetails)
    {
        return emsScoreDetailsMapper.updateEmsScoreDetails(emsScoreDetails);
    }

    /**
     * 批量删除分数明细
     * 
     * @param ids 需要删除的分数明细主键
     * @return 结果
     */
    @Override
    public int deleteEmsScoreDetailsByIds(Long[] ids)
    {
        return emsScoreDetailsMapper.deleteEmsScoreDetailsByIds(ids);
    }

    /**
     * 删除分数明细信息
     * 
     * @param id 分数明细主键
     * @return 结果
     */
    @Override
    public int deleteEmsScoreDetailsById(Long id)
    {
        return emsScoreDetailsMapper.deleteEmsScoreDetailsById(id);
    }
}
